/*
 *    This program is free software; you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation; either version 3 of the License
 *    This program is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *    You should have received a copy of the GNU General Public License
 *    along with this program; if not, write to the Free Software Foundation,
 *    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
 */

package JET.MouseStuff.Tasks;

import JET.Centers.ControlCenter;
import JET.MouseStuff.MouseMode;
import JET.MouseStuff.MouseSubMode;
import JET.MouseStuff.Task;
import java.awt.event.KeyEvent;

/**
 *
 * @author 057Ry
 */
public class AddSingleRSpringTask implements Task
{
    static final ControlCenter CC = ControlCenter.getInstance();

    public boolean canProceed()
    {
        return true;
    }

    public void execute()
    {
        CC.MC.setMouseMode(MouseMode.ADD_SINGLE_RSPRING);
        CC.MC.setMouseSubMode(MouseSubMode.FIND_FIRST_OBJECT);
    }

    public boolean needKeyConfirmationToProceed()
    {
        return true;
    }

    public int getKeyCode()
    {
        return KeyEvent.VK_ENTER;
    }
}